package cn.virens.dd.simple.value;

import java.util.Date;

import cn.hutool.core.date.DateUtil;
import cn.virens.dd.StrategyValue;

public class StrategyValueByTime implements StrategyValue {
	private final Date time;

	public StrategyValueByTime() {
		this(DateUtil.date());
	}

	public StrategyValueByTime(Date time) {
		this.time = time;
	}

	public StrategyValueByTime(StrategyValueByTime other) {
		this.time = new Date(other.time.getTime());
	}

	public Date getTime() {
		return time;
	}
}
